﻿namespace Chameleon.Collections
{
	using System;

	/// <summary>
	/// Event data for intercepted enumerations.
	/// </summary>
	
	internal sealed class InterceptedEnumerationEventArgs : EventArgs
	{
		/// <summary>
		/// Gets the item that was returned by the enumeration.
		/// </summary>
		
		internal object Item { get; private set; }


		/// <summary>
		/// Initializes a new instance to indicate an item's enumeration was intercepted.
		/// </summary>
		/// <param name="item">Item that was returned by the enumeration.</param>
		
		internal InterceptedEnumerationEventArgs( object item )
		{
			Item = item;
		}
	}
}
